home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / vmed.arc / ED0.CCC next >
Text File  |  1985-12-03  |  2KB  |  67 lines

  1. /*    Screen Editor:    Non-user defined globals
  2.  *
  3.  *    Module: ed0/ccc
  4.  *    Date: November 26, 1983
  5.  */
  6.  
  7.  /* Define misc. constants */
  8. #define    EOS    0        /* code sometimes assumes \0 */
  9. #define    OK    0
  10. #define    ERR    0xFFFE        /* error.  must be <0 */
  11. #define    EOF    0xFFFF        /* end of file. must be <0 */
  12. #define    YES    1        /* must be nonzero */
  13. #define    NO    0
  14. #define ON    0xFFFF
  15. #define    OFF    0
  16. #define    CR    13        /* carriage return */
  17. #define    LF    10        /* line feed */
  18. #define    TAB    9        /* tab character */
  19. #define    HUGE    32000        /* practical infinity */
  20. #define FILE    char
  21. #define NULL    0
  22. #define    FOREVER    for(;;)        /* tighter code than while(1) */
  23.  
  24. /*      add these #defines to ED0/CCC (cursor() is not used)
  25.  *      to tell ED8 what the cursor-control characters are
  26.  *      (they could be put in ED8 since they are not used in
  27.  *      any other module, but if all machine-dependent stuff
  28.  *      is in one place the program is easier to port.)
  29.  */
  30.  
  31. #define HOME 28        /* home the cursor */
  32. #define CURDN 0x1A    /* move cursor down one line*/
  33. #define CURRT 0x19    /* move cursor one char to right */
  34. #define RTA 9        /* right arrow, same as TAB */
  35. #define SHRA 0x94    /* shifted right arrow */
  36. #define CUROFF 15    /* turn cursor OFF */
  37. #define CURON 14    /* turn it back ON */
  38.                                              
  39.  /* Define constants describing a text line */
  40.  
  41. #define    MAXLEN    200
  42.                     /*MAXLEN is max characters per line */
  43. #define    MAXLEN1    201
  44.                     /*MAXLEN + 1 */
  45. #define    MAXLEN2    202
  46.                     /*MAXLEN + 2 */
  47.  
  48. /* Define length and width of screen and printer */
  49. #define    SCRNW    64
  50.                     /* width of video screen */
  51. #define    SCRNW1    63
  52. #define    SCRNL    16
  53.                     /* length of video screen */
  54. #define    SCRNL1    15
  55. #define    SCRNL2    14
  56. #define    LISTW    85
  57.                     /* width of printer */
  58.  
  59.  /* Define operating system constants */
  60. #define    SYSFNMAX    15
  61.                 /* max length of LDOS file descriptor */
  62.  
  63. #include ed1a
  64.  
  65. /* end module ed0/ccc */
  66.  
  67.